home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / WE-BREAK.ZIP / P4_TEST.POV < prev    next >
Encoding:
Text File  |  1997-02-28  |  4.6 KB  |  145 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "p4_test.pov" - The main test file for the people.
  6. //
  7. // "Paul's Primitive POV People", or "P4".
  8. //
  9. // Created by: Paul T. Dawson
  10. //             ptdawson@voicenet.com
  11. //             http://www.voicenet.com/~ptdawson
  12. //
  13. // Version 0.3 - February 28, 1997
  14. //
  15. // The purpose of this file is to let you design and test one "person"
  16. // with a simple scene. Then, when you have all of the settings just
  17. // right, you can add the "person" to your own scene.
  18.  
  19. //------------------------------------------------------------------->
  20. //------------------------------------------------------------------->
  21. //
  22. // The standard initialization stuff.
  23.  
  24.         #include "colors.inc"
  25.         #include "textures.inc"
  26.         #include "skies.inc"
  27.         #include "golds.inc"
  28.         #include "stones.inc"
  29.         #default { finish { Shiny } }
  30.  
  31. //------------------------------------------------------------------->
  32. //------------------------------------------------------------------->
  33. //
  34. // Choose a camera. These are approximate, and will need adjusting!
  35. //
  36. // 1 = Far away.
  37. // 2 = Head.
  38. // 3 = Side of head.
  39. // 4 = Shoes (to see if feet are on floor!).
  40. // 5 = Really far away.
  41. // 6 = Back view.
  42. // 7 = Front view - head to waist.
  43.  
  44.         #declare P4_Which_Camera = 1
  45.  
  46. //------------------------------------------------------------------->
  47. //------------------------------------------------------------------->
  48. //
  49. // Choose the file to test.
  50.  
  51.         #declare P4_FILENAME = "p4def_00.inc"
  52.  
  53. //------------------------------------------------------------------->
  54. //------------------------------------------------------------------->
  55. //
  56. // Set up the camera.
  57.  
  58.         #if ( P4_Which_Camera = 1 )
  59.                 camera { location < 0, 36, -150 > look_at < 0, 36, 0 > }
  60.         #end
  61.  
  62.         #if ( P4_Which_Camera = 2 )
  63.                 camera { location < 0, 45, -45 > look_at < 0, 45, 0 > }
  64.         #end
  65.  
  66.         #if ( P4_Which_Camera = 3 )
  67.                 camera { location < -70, 75, -40 > look_at < -70, 75, 0 > }
  68.         #end
  69.  
  70.         #if ( P4_Which_Camera = 4 )
  71.                 camera { location < 0, 1, -30 > look_at < 0, 0, 0 > }
  72.         #end
  73.  
  74.         #if ( P4_Which_Camera = 5 )
  75.                 camera { location < 0, 36, -300 > look_at < 0, 36, 0 > }
  76.         #end
  77.  
  78.         #if ( P4_Which_Camera = 6 )
  79.                 camera { location < 70, 24, -85 > look_at < 70, 24, 0 > }
  80.         #end
  81.  
  82.         #if ( P4_Which_Camera = 7 )
  83.                 camera { location < 0, 36, -60 > look_at < 0, 36, 0 > }
  84.         #end
  85.  
  86. //------------------------------------------------------------------->
  87. //------------------------------------------------------------------->
  88. //
  89. // Simple lights, floor, and background.
  90.  
  91.         light_source { < -50, 50, -200 > color White}
  92.         light_source { <   0, 50, -200 > color White}
  93.         light_source { <  50, 50, -200 > color White}
  94.  
  95.         cylinder { < 0, 0, 0 > < 0, -1, 0 >, 200 pigment { Cyan } }
  96.  
  97.         background { Gray20 }
  98.  
  99. //------------------------------------------------------------------->
  100. //------------------------------------------------------------------->
  101. //
  102. // These posts show how tall your person is (12 inch squares).
  103.  
  104.         #declare A = -35 #while ( A <= 35 )
  105.  
  106.         box { < -3, 0, -3 > < 3, 100, 3 >
  107.                 pigment { checker White, Black scale 12 }
  108.                 translate x * A }
  109.  
  110.         #declare A = A + 70 #end
  111.  
  112. //------------------------------------------------------------------->
  113. //------------------------------------------------------------------->
  114. //
  115. // This is the random number seed (required!).
  116.  
  117.         #declare P4_RAND = seed(0)
  118.  
  119. //------------------------------------------------------------------->
  120. //------------------------------------------------------------------->
  121. //
  122. // Go and set the variables, and create the object.
  123.  
  124.         #include P4_FILENAME
  125.  
  126. //------------------------------------------------------------------->
  127. //------------------------------------------------------------------->
  128. //
  129. // Now show the person three times.
  130.  
  131.         object { One_Person  rotate y * 90
  132.                 translate x * -70 }
  133.  
  134.         object { One_Person }
  135.  
  136.         object { One_Person rotate y * 180
  137.                 translate x * 70 }
  138.  
  139. //------------------------------------------------------------------->
  140. //------------------------------------------------------------------->
  141. //
  142. // End of this file.
  143.  
  144.  
  145.